package com.hao.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description: TODO
 * @author: a'hao
 * @date: 2021/11/11
 */
@Controller
public class HelloController {

    @RequestMapping("/")
    public String hello(){
//        返回视图名称
        return "index";
    }
    @RequestMapping("/target")
    public String target(){
//        返回视图名称
        return "target";
    }
}
